<template>
  <!-- 通用svg图标组件类 -->
  <svg>
    <use :xlink:href="prefix + name" :fill="color"></use>
  </svg>
</template>

<script setup lang="ts">
defineProps({
  prefix: {
    type: String,
    default: "#icon-",
  },
  name: String,
  color: {
    type: String,
    default: "red",
  },
});
</script>

<style lang="scss" scoped></style>
